<?php
if(isset($item) and !empty($item)): 
?>
<div class="entry-wrap">
    <span class="close img-circle" id="bt-close">&times;</span>    
    <form method="post"> 
    <dl>
        <dt>Status</dt>
        <dd>
            <select name="entry[published]">
                <option value="0" <?php if($item['Published'] == '0') echo "selected='true'"; ?>>Unpublished</option>
                <option value="1" <?php if($item['Published'] == '1') echo "selected='true'"; ?>>Published</option>
            </select>
        </dd>
        <dt>Title</dt>
        <dd>
            <div class="title">
            <input type="text" style="width: 98%" value="<?php echo $item['Title'] ?>" />
            </div>
        </dd>
        <dt>Description</dt>
        <dd>
            <div class="description">
                <textarea id="editor" name="entry[description]"><?php echo $item['Description'] ?></textarea>
            </div>
        </dd>
        <div class="intro-image">
            <img src="<?php $item['IntroImage'] ?>" />
        </div>
        <dt style="padding: 15px 0">List images<div class="toolbar"><a href="#" class="btn">ADD IMAGE</a></div></dt>
        <dd class="gallery">
            <ul>
                <li><img src="../data/img1.jpg" /></li>
                <li><img src="../data/img2.jpg" /></li>               
            </ul>
        </dd>
    </dl>
    </form>
    
    <div class="list-image">
        
    </div>
</div>
<?php endif; ?>